package com.buaa.aimall.userModule.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.buaa.aimall.Utils.Enum.WorkOrderStatusEnum;
import com.baomidou.mybatisplus.annotation.*;
import com.buaa.aimall.userModule.Enum.PayOrderStatusEnum;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

@TableName(value = "withdrawal_workorder")
@Data
@Builder
public class WithdrawalWorkOrderEntity {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("amount")
    private Integer amount;

    @TableField("fk_creator")
    private String creator;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField("fk_processor")
    private String processor;

    @TableField("process_time")
    private LocalDateTime processTime;

    @TableField("status")
    private WorkOrderStatusEnum status;

    @TableField("mch_order_no")
    private String mchOrderNo;

    @TableField("mch_order_status")
    private PayOrderStatusEnum mchOrderStatus;

    @TableField("account_no")
    private String accountNo;

    @TableField("account_name")
    private String accountName;
}
